package com.software.usercenter.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Author: grx
 * Description:
 */

@Data
@Entity
public class Score {
    @Id
    private String userId;
    private Integer questionId;
    private Double mark;

    public Score(String userId, Integer questionId, Double mark) {
        this.userId = userId;
        this.questionId = questionId;
        this.mark = mark;
    }
}
